package com.cheng.example.atguigu.design_pattern.strategy.imporve;

/*
 * @author 程帅
 * @createTime: 2020/10/19 13:22
 * @Created: with IntelliJ IDEA.
 */
public class PekingDuck extends Duck {

    public PekingDuck() {
        flyBehavior = new BadFlyBehavior();
    }


    @Override
    public void display() {
        System.out.println("~~北京鸭~~");
    }

}
